﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="NewAlimentacao.aspx.cs" Inherits="AcademiaInteligenteWeb.NewAlimentacao" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 33px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Nova Alimentação
    </h1>
    <div id="formulario">
        <table>
            <tr>
                <td>Dias</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlDias" CssClass="form-control tooltipfield required" Width="162px">
                        <asp:ListItem Text="Domingo" />
                        <asp:ListItem Text="Segunda-feira" />
                        <asp:ListItem Text="Terça-feira" />
                        <asp:ListItem Text="Quarta-feira" />
                        <asp:ListItem Text="Quinta-feira" />
                        <asp:ListItem Text="Sexta-feira" />
                        <asp:ListItem Text="Sabado" />
                    </asp:DropDownList>
                </td>                
            </tr>           
              <tr>
                   <td>Horario</td>
                  <td>
                    <asp:DropDownList runat="server" ID="ddlHorario" CssClass="form-control tooltipfield required" Width="162px">
                        <asp:ListItem Text="06:00" />
                        <asp:ListItem Text="09:00" />
                        <asp:ListItem Text="12:00" />
                        <asp:ListItem Text="15:00" />
                        <asp:ListItem Text="18:00" />
                        <asp:ListItem Text="21:00" />
                    </asp:DropDownList>
                  </td>
            </tr>
            <tr>
                   <td>Descrição</td>
                  <td>
                    <asp:TextBox runat="server" ID="txtDescricao" CssClass="form-control tooltipfield required" Width="162px" />
                  </td>
           </tr>
            <tr>
                   <td class="auto-style1">Quantidade de Calorias</td>
                  <td class="auto-style1">
                    <asp:TextBox runat="server" ID="txtQtdCalorias" CssClass="form-control tooltipfield required" Width="162px" />
                  </td>
           </tr>
              <tr>
                <td colspan="4" style="text-align:right;">
                    <asp:Button ID="btnSalvar" Text="Salvar" runat="server" OnClick="btnSalvar_Click" />
                </td>
            </tr>
        </table>
    </div>        

    <div id="dados">
        <asp:GridView ID="grdAlimentacao" runat="server" AutoGenerateColumns="false" AllowPaging="true">
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
            <Columns>
                 <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  HeaderStyle-Width="30px">
                    <ItemTemplate>
                        <input type="checkbox" name="chkSelect" class="checkboxGrid" value='<%#Eval("id")%>' />
                    </ItemTemplate>
                </asp:TemplateField> 
                <asp:BoundField DataField="id" HeaderText="Id" HeaderStyle-Width="35px" />
                <asp:BoundField DataField="Dias" HeaderText="Dias" HeaderStyle-Width="65px" />
                <asp:BoundField DataField="Horario" HeaderText="Horario" HeaderStyle-Width="55px" />
                <asp:BoundField DataField="Descricao" HeaderText="Descricao" HeaderStyle-Width="160px" />
                <asp:BoundField DataField="qtd_caloria" HeaderText="Quantidade de Calorias" HeaderStyle-Width="80px" />

            </Columns>
        </asp:GridView>
    </div>

    <div id="acoes">
        
             <ul>
                 <li class="itemSelected">
                <asp:LinkButton Text="Alterar" ID="lnkAlterar" runat="server" OnClick="lnkAlterar_Click" />
                </li>
              <li class="itemSelected">
                <asp:LinkButton Text="Excluir" ID="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
                <asp:HiddenField ID="hfCurrentItem" ClientIDMode="Static" runat="server" />
            </li>
            </ul>
    </div>

</asp:Content>
